<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">加载中...</span> <span>交易记录</span> <!---->
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Users/userCenter')}" class="iconfont back"></a></header>

    <div data-v-1558f0ab="" class="main" s="[object Object]">
        <div data-v-1558f0ab="" class="textMore dataType">
            <em data-v-1558f0ab=""></em>
            <i data-v-1558f0ab="" class="iconfont"></i>
        </div>
        <!---->
        <div data-v-1558f0ab="" id="leftTabBox">
            <div data-v-1558f0ab="" class="hd">
                <ul class="fx_ul_record" data-v-1558f0ab="">
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 0){echo 'on';} ?>">
                        <a class="userSearch active" data-id="0" onclick="xuanze1(this.id)" id="quan" style="text-decoration:none">所有类型</a>
                    </li>
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 1){echo 'on';} ?>">
                        <a data-id="1" class="userSearch lx active" onclick="xuanze1(this.id)" id="yi">提现记录</a>
                    </li>
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 2){echo 'on';} ?>">
                        <a data-id="2" class="userSearch lx active" onclick="xuanze1(this.id)" id="wei">充值记录</a>
                    </li>
                </ul>
            </div>
            <div data-v-1558f0ab="" class="bd dontSelect">
                <?php if(!empty($arr)){?>
                <div data-v-1558f0ab="" class="scrollBox">
                    <div data-v-1558f0ab="" class="touchScroll">
                        <foreach name="arr" item="v">
                            <div data-v-1558f0ab="">
                                <a data-v-1558f0ab="" class="active">
                                    <div data-v-1558f0ab="">
                                        <p data-v-1558f0ab="">
                                            <?php if($v["type"]=='1'){echo "充值入款";}
                                          elseif($v["type"]=='2'){echo "提现扣款";}
                                          elseif($v["type"]=='3'){echo "投注扣款";}
                                          elseif($v["type"]=='4'){echo "投注返点";}
                                          elseif($v["type"]=='5'){echo "奖金派送";}
                                          elseif($v["type"]=='6'){echo "提现退回";}
                                          elseif($v["type"]=='7'){echo "活动礼金";}
                                          elseif($v["type"]=='8'){echo "追号停止";}
                                          elseif($v["type"]=='9'){echo "误存提出";}
                                          elseif($v["type"]=='10'){echo "人工存入";}
                                          elseif($v["type"]=='11'){echo "其他优惠";}
                                          elseif($v["type"]=='12'){echo "投注撤单";}
                                          elseif($v["type"]=='13'){echo "代理明细";} ; ?>
                                        </p>
                                        <span data-v-1558f0ab=""><?php echo date('Y-m-d H:i:s',$v["ctime"]);?></span>
                                    </div>
                                    <strong data-v-1558f0ab="" class="OutMoney"><?php if($v["type"]=='1'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='2'){echo "-".sprintf("%.2f",$v['zhi_money']);}
                                          elseif($v["type"]=='3'){echo "-".sprintf("%.2f",$v['zhi_money']);}
                                          elseif($v["type"]=='4'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='5'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='6'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='7'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='8'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='9'){echo "-".sprintf("%.2f",$v['zhi_money']);}
                                          elseif($v["type"]=='10'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='11'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='12'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";}
                                          elseif($v["type"]=='13'){echo "<font color='red'>+".sprintf("%.2f",$v['shou_money'])."</font>";} ; ?>
                                    </strong>
                                </a>

                                <div data-v-1558f0ab="" class="hr1px"></div>
                            </div>
                        </foreach>
                        <!----> <!---->
                        <div data-v-1558f0ab="" class="msg noMore">已显示<?php if($shijian==1){echo "今天";}elseif($shijian==2){echo "昨天";}elseif($shijian==3){echo "七天";} ?>全部记录</div>
                    </div>
                </div>

                <?php }else{ ?>
                <div data-v-1558f0ab="" class="scrollBox">
                    <div data-v-1558f0ab="" class="touchScroll">
                        <div data-v-1558f0ab="" class="fullPageMsg">
                            <div data-v-1558f0ab="" class="fullPageIcon iconfont"></div>
                            <p data-v-1558f0ab="">暂无记录</p></div>
                    </div>
                </div>
                <?php } ?>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
            </div>
        </div>
        <div class="_problemBox" data-v-1558f0ab="" style="display: none;">
            <div class="blackBg"></div>
            <div class="moreLayer">
                <ul>
                    <li class="<?php if($shijian == 1){echo 'on';} ?> times"><a data-value="1" class="userSearch  active"  onclick="xuanze(this.id)" id="jintian" >今天</a></li>
                    <li class="<?php if($shijian == 2){echo 'on';} ?> times"><a data-value="2" class="userSearch  active "  onclick="xuanze(this.id)" id="zuotian" >昨天</a></li>
                    <li class="<?php if($shijian == 3){echo 'on';} ?> times"><a data-value="3" class="userSearch  active "  onclick="xuanze(this.id)" id="qitian" >七天</a></li>
                </ul>
                <ul>
                    <li><a>取消</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!--<script src="js/jquery-1.9.1.min.js"></script>-->
<script>
    $(function(){
        $(".moreLayer ul:nth-of-type(1) li").each(function () {
            if($(this).hasClass("on")){
                $(".dataType em").text($(this).text());
            }
        })
    })

    //    今天 明天 七天 切换
    daytab();
    function daytab() {
        $(".dataType").click(function () {
            $("._problemBox").show()
        });
        $(".blackBg").click(function () {
            $("._problemBox").hide()
        });
        $(".moreLayer li").click(function () {
            $("._problemBox").hide()
        })
    }

    //时间的 传值
    function xuanze(a){
        var shijian = $("#"+a).attr("data-value");
        var leixing = $(".lx.on").find("a").attr("data-id");
        window.location.href="/Users/billRecord/shijian/"+shijian+"/leixing/"+leixing;
    }
    function xuanze1(b){
        var shijian = $(".times.on").find("a").attr("data-value");
        var leixing = $("#"+b).attr("data-id");
        window.location.href="/Users/billRecord/shijian/"+shijian+"/leixing/"+leixing;
    }

</script>
</body>
</html>